package com.huarui.batch.model;

import java.math.BigDecimal;
import java.util.Date;
import org.ewaf.framework.model.BaseDataObject;
import com.huarui.partner.model.Partner;

/**
 * 批 次
 * @author ycf
 *
 */
public class Batch extends BaseDataObject{

	private static final long serialVersionUID = 90801184204152484L;

	/**
	 * 都公开
	 */
	public static final char PUBLICANLEVEl_PUBLIC = '0';
	/**
	 * 对客户公司
	 */
	public static final char PUBLICANLEVEl_PARTNER = '1';
	/**
	 * 不公开
	 */
	public static final char PUBLICANLEVEl_PRIVATE = '2';
	
	/**
	 * 入库单
	 */
	public static final Integer DCOUMENT_TYPE_STORE = 0;
	
	/**
	 * 期初单
	 */
	public static final Integer DCOUMENT_TYPE_INIT = 1;
	
	/**
	 * 急件单
	 */
	public static final Integer DCOUMENT_TYPE_HURRY = 2;
	
	
	
	/**
	 * 主键
	 */
	private Integer id;
	
	/**
	 * 所属公司Id
	 */
	private Integer companyId;
	
	/**
	 * 零件Id
	 */
	private Integer partId;
	
	/**
	 * 品牌
	 */
	private String brand;
	
	/**
	 * 产地
	 */
	private String origin;
	
	/**
	 * 成本价(该批次的价格)
	 */
	private BigDecimal cost;
	
	/**
	 * 公开零售价(媒体价)
	 */
	private BigDecimal retailPrice;
	
	/**
	 * 最低售价
	 */
	private BigDecimal minPrice;
	
	/**
	 * 初始数量(进货数量)
	 */
	private Integer initQuantity;
	
	/**
	 * 剩余数量
	 */
	private Integer onHand;
	
	/**
	 * 公开级别（0 =都公开，1=对客户公司，2=不公开）
	 */
	private char publicanLevel;
	
	/**
	 * 入仓时间
	 */
	private Date gmtEntry;
	
	/**
	 * 修改时间
	 */
	private Date gmtModify;
	
	/**
	 * 单据类型(0入库单，1期初单，2急件单)
	 */
	private Integer documentType;
	
	/**
	 * 单据ID
	 */
	private Integer documentId;
	
	/**
	 * 单据流水号
	 */
	private String documentCode;
	
	/**
	 * 供应商ID(从partner表中取,如果是从期初单来，那么取值为0)
	 */
	private Partner partnerId;
	
	/**
	 * 供应商名称
	 */
	private String partnerName;
	
	/**
	 * 版本字段
	 */
	private Date tmsVersion;
	
	@Override
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getCompanyId() {
		return companyId;
	}
	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}
	public Integer getPartId() {
		return partId;
	}
	public void setPartId(Integer partId) {
		this.partId = partId;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public String getOrigin() {
		return origin;
	}
	public void setOrigin(String origin) {
		this.origin = origin;
	}
	public BigDecimal getCost() {
		return cost;
	}
	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}
	public BigDecimal getRetailPrice() {
		return retailPrice;
	}
	public void setRetailPrice(BigDecimal retailPrice) {
		this.retailPrice = retailPrice;
	}
	public BigDecimal getMinPrice() {
		return minPrice;
	}
	public void setMinPrice(BigDecimal minPrice) {
		this.minPrice = minPrice;
	}
	
	public Integer getInitQuantity() {
		return initQuantity;
	}
	public void setInitQuantity(Integer initQuantity) {
		this.initQuantity = initQuantity;
	}
	public Integer getOnHand() {
		return onHand;
	}
	public void setOnHand(Integer onHand) {
		this.onHand = onHand;
	}
	public char getPublicanLevel() {
		return publicanLevel;
	}
	public void setPublicanLevel(char publicanLevel) {
		this.publicanLevel = publicanLevel;
	}
	public Date getGmtEntry() {
		return gmtEntry;
	}
	public void setGmtEntry(Date gmtEntry) {
		this.gmtEntry = gmtEntry;
	}
	public Date getGmtModify() {
		return gmtModify;
	}
	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}
	
	public Integer getDocumentType() {
		return documentType;
	}
	public void setDocumentType(Integer documentType) {
		this.documentType = documentType;
	}
	public Integer getDocumentId() {
		return documentId;
	}
	public void setDocumentId(Integer documentId) {
		this.documentId = documentId;
	}
	public String getDocumentCode() {
		return documentCode;
	}
	public void setDocumentCode(String documentCode) {
		this.documentCode = documentCode;
	}
	public Partner getPartnerId() {
		return partnerId;
	}
	public void setPartnerId(Partner partnerId) {
		this.partnerId = partnerId;
	}
	public String getPartnerName() {
		return partnerName;
	}
	public void setPartnerName(String partnerName) {
		this.partnerName = partnerName;
	}
	public Date getTmsVersion() {
		return tmsVersion;
	}
	public void setTmsVersion(Date tmsVersion) {
		this.tmsVersion = tmsVersion;
	}
	
}
